package com.joint.base.entity;

import com.joint.base.parent.BaseEntity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 流程简要表
 * Created by ZhuChunXiao on 2017/4/11.
 */
@Entity
@Table(name="sys_processbrief")
public class ProcessBrief  extends BaseEntity {
    private static final long serialVersionUID = 6166980662311767837L;
    /**
     * 名称
     */
    private String name;

    /**
     * 文档归档读者
     */
    private CommonConfig readConfig;
    /**
     * 文档归档编辑者
     */
    private CommonConfig editConfig;
    /**
     * 文档阅览者
     */
    private CommonConfig docConfig;

    /**
     * 关联的实体类名
     */
    private String tableKey;

    public String getTableKey() {
        return tableKey;
    }

    public void setTableKey(String tableKey) {
        this.tableKey = tableKey;
    }




    @OneToOne(cascade=CascadeType.ALL)
    public CommonConfig getReadConfig() {
        return readConfig;
    }

    public void setReadConfig(CommonConfig readConfig) {
        this.readConfig = readConfig;
    }

    @OneToOne(cascade=CascadeType.ALL)
    public CommonConfig getEditConfig() {
        return editConfig;
    }

    public void setEditConfig(CommonConfig editConfig) {
        this.editConfig = editConfig;
    }

    @OneToOne(cascade=CascadeType.ALL)
    public CommonConfig getDocConfig() {
        return docConfig;
    }

    public void setDocConfig(CommonConfig docConfig) {
        this.docConfig = docConfig;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
